package cn.wolfcode.crm.service;

import cn.wolfcode.crm.domain.Employee;
import cn.wolfcode.crm.domain.Signin;
import cn.wolfcode.crm.query.QueryForObject;
import cn.wolfcode.crm.util.PageResult;
import cn.wolfcode.crm.util.PunchCard;

import java.util.List;

public interface ISigninService {

    void insert(Signin record);

    List<Signin> selectAll();

    Signin selectByPrimaryKey(Long id);

//    签到
    void signinTime(Signin signin, Employee emp);

//    根据员工id获取签到数据
    Signin selectSigninByEmployeeId(Long id, String date);

//    签退
    void signoutTime(Signin signin, Employee employee, String date);

    PageResult query(QueryForObject qo);

    //得到对应的考勤记录
    PunchCard querySigninByEmployeeId(Long id);
}
